import { HTTP } from '../utils/http.js'

class EvaluationHttp extends HTTP { 
  // 获取我的所有评价
  getMyAllEvaluation (data) {
    return this.request({
      url: 'order/comment/myComment/list',
      method: 'POST',
      data: data,
      isJavaRequest: true
    })
  }

  // 获取店铺评价
  getStoreEvaluation (data) {
    return this.request({
      url: 'order/comment/list',
      method: 'POST',
      data: data,
      isJavaRequest: true
    })
  }

  // 删除评论
  deleteEvaluation (data) {
    return this.request({
      url: 'order/comment/remove',
      method: 'POST',
      data: data,
      isJavaRequest: true
    })
  }
}

export { EvaluationHttp }
